package com.study.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.study.model.mdao.IntypeMapper;
import com.study.model.pojo.Intype;

@Service
public class IntypeService {
	@Autowired
	IntypeMapper iMapper;
	
	//查询所有库存方式
	public List<Intype> findAll(){
		return iMapper.findAll();
	}
	
	//添加所有库存方式
	public void addIntype(Intype intype) {
		iMapper.addIntype(intype);
	}
	
	//按入库/出库方式查询
	public List<Intype> findByintType(String intType){
		return iMapper.findByintType(intType);
	}
	
	//删除库存方式
	public void delIntype(String intId) {
		iMapper.delIntype(intId);
	}
	
	//根据id查询
	public Intype findByintId(String intId) {
		return iMapper.findByintId(intId);
	}
}
